package com.retail.bbq.cola.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 品牌业务数据回传处理进度
 */
public enum OrderDetailDealStatusEnum {
    NEED_DEAL(0, "待处理"),
    DEAL_ING(1, "处理中"),
    DEAL_SUCCESS(2, "处理成功"),
    NO_CUSTOMER_ERROR(3, "无加密手机号对应顾客信息"),
    DEAL_EXCEPTION(4, "处理异常"),
    BIZ_DETAIL_EMPTY_ERROR(5, "业务明细数据不能为空"),
    PRICE_EXCEPTION(6, "金额数据转换异常"),

    ;

    @EnumValue
    @JsonValue
    private int status;

    private String desc;

    OrderDetailDealStatusEnum(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer getStatus() {
        return this.status;
    }
}
